<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="../common/prama.jsp" %>
<link href="<%=burl %>/css/common/widgetsGrid.css" type="text/css" rel="stylesheet"/>
<link href="<%=burl %>/css/common/grid.css" type="text/css" rel="stylesheet"/>
<link href="<%=burl %>/css/common/dialog.css" type="text/css" rel="stylesheet"/>
<link href="<%=burl %>/css/common/common.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.3"></script>
<script type='text/javascript' src='<%=burl %>/js/common/jquery/jquery-1.8.2.min.js?null'></script>
<script type='text/javascript' src='<%=burl %>/js/common/common.js'></script>
<script type='text/javascript' src='<%=burl %>/js/common/widgets/widgetsGrid.js'></script>
<script type='text/javascript' src='<%=burl %>/js/common/widgets/managerGrid.js'></script>
<script type='text/javascript' src='<%=burl %>/js/business/sendOrder.js'></script>
<script type="text/javascript">
var burl = "<%=burl %>";
$(function(){
	//sendOrder.showOrderDialog();
	grid = myGrid.grid({
		url:burl+"/PolicePosition/test.do",
		columns:[
		         {text:"ID",field:"id"},
		         {text:"类型",field:"buildingType"},
		         {text:"房屋编码",field:"buildingCode"},
		         {text:"操作",field:"todo"},
		        ],
		 OnRender:function(data){
			data.todo = "<a tag='edit' href='我是"+data.id+"'>删除</a>";
			return data;
		},
        OnComplete:function(){
			$("a[tag='edit']").bind("click",function(){
				var href = $(this).attr("href");
				alert(href);
				return false;
			});
		}
	},"grid0");
});
</script>
<style type="text/css">
    /* line 28, ../../../zhaoche_compass/sass/common/widgets_grid.scss */
.widgets_grid_table_td_odd1 {
      height: 30px;
      font-size: 18px;
      text-align: left;
      padding-left: 8px;
      padding-right: 10px;
      border-bottom: 1px solid #F1F1F1;
      background-color: #F7F7F7; }
    /* line 37, ../../../zhaoche_compass/sass/common/widgets_grid.scss */
.widgets_grid_table_td_even1 {
      height: 30px;
      font-size: 14px;
      text-align: left;
      padding-left: 8px;
      padding-right: 10px;
      border-bottom: 1px solid #F1F1F1;
      background-color: #fff; }
</style>
</head>
<body>
	<div id="grid0"></div>
	
</body>
</html>